define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//获取数据
			getlist: function(status, nPage, callback, calldone) {
				Http.post({
					method: 'member.coupon.getlist',
					status:status,
					nPage: nPage,
					pagelimit: 10
				}, function(result) {
					if(callback)
						callback(result);
				}, function(e) {

				}, function() {
					if(calldone)
						calldone();
				})
			}
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Couponlist", factory);
});